<template>
  <div class="scroll-wrapper" :style="wrapperStyle">
    <slot></slot>
  </div>
</template>

<script>

export default {
  props: ["width", "height"],
  computed: {
    wrapperStyle() {
      return `width: ${this.width}; height: ${this.height};`;
    }
  },
  mounted() {
    window.Scrollbar.init(this.$el, { });
  }
};
</script>

<style lang="stylus">
.scroll-wrapper
  overflow auto

  .scrollbar-thumb
    background rgb(198, 226, 255)

</style>